from dataclasses import dataclass

@dataclass
class TestingEnvironment:
    """测试环境配置"""
    HOST = 'http://124.70.39.201/'
    USERNAME = 'admin'
    PASSWORD = 'Aa123456!'
    DB = {"host":'',"port":3306,"user":"","password":"","db":""}

@dataclass
class PreProductionEnvironment:
    """预发布环境配置"""
    HOST = ""

@dataclass
class DevEnvironment:
    """生产环境配置"""
    HOST = ""

ENV_MAP = {
    "测试环境": TestingEnvironment,
    "预发布环境": PreProductionEnvironment,
    "生产环境": DevEnvironment
}

ENV_NAME = "测试环境"
ENV = ENV_MAP[ENV_NAME]()
#print(ENV.HOST)


